Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speedup SumLocksByDenom #7172

Merged
merged 3 commits into from
Dec 21, 2023
Merged

Speedup SumLocksByDenom #7172

merged 3 commits into from
Dec 21, 2023

Conversation

ValarDragon
Copy link
Member

State compatible speedups to SumLocksByDenom code.

I expect this to reduce epoch CPU time by 4 seconds. (maybe a bit more with garbage collector reductions)

This entire for loop should later get eliminated with #7119, but that can come later / after being more certain around state compat.

@ValarDragon ValarDragon added V:state/compatible/backport State machine compatible PR, should be backported A:backport/v21.x backport patches to v21.x branch labels Dec 21, 2023
@ValarDragon ValarDragon merged commit 729d43f into main Dec 21, 2023
1 check passed
@ValarDragon ValarDragon deleted the dev/mut_int_op branch December 21, 2023 15:46
mergify bot pushed a commit that referenced this pull request Dec 21, 2023
* Use mut int ops in a hotloop

* Also eliminate runtime-eq check

* Add changelog

(cherry picked from commit 729d43f)
ValarDragon added a commit that referenced this pull request Dec 21, 2023
* Use mut int ops in a hotloop

* Also eliminate runtime-eq check

* Add changelog

(cherry picked from commit 729d43f)

Co-authored-by: Dev Ojha <[email protected]>
ValarDragon added a commit that referenced this pull request Dec 21, 2023
* Use mut int ops in a hotloop

* Also eliminate runtime-eq check

* Add changelog

(cherry picked from commit 729d43f)

Co-authored-by: Dev Ojha <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v21.x backport patches to v21.x branch C:x/lockup V:state/compatible/backport State machine compatible PR, should be backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant